<?php
/**
 * This is the RSS Generator for the "New Tools on the MDE" RSS Feed.
 */

/**
 * 
 */

    // RSS Feed Creation

    $RSS = new RSSFeed('New tools on the MDE tool website.', EclipseMDE::rssLink($gVAR['alias']), 'What is new on the MDE Tool website?', $copyrightNotice);

    /**
     * -------------------------------------
     *      Recently Added Tools Feed 
     * -------------------------------------
     */
    $query = $sql_conx->query("SELECT `pid` FROM `tool_project` WHERE `visible`='1' ORDER BY `creation_time` DESC LIMIT 5;");
    while($row = $query->fetch_assoc()) {
	$item =& $ProjectStash->stash((int)$row['pid']);
	$date = date("d/M/Y", $item->getCreationTime());
	$title = $item->getName();
	$url = EclipseMDE::aliasLink($item->getAlias());
	$description = $item->getDescription();
	//$icon = $item->getIconURL();
	$RSS->addItem($title, $description, $url, $date);
    }
    /**
     *	     Recently Added Tools Feed
     * --------------- End --------------- 
     */
    $RSS->render();
?>
